package Chpter4;

interface Shape{
	double area(double five);
}
class Square implements Shape{
	public double area(double length) {
		return length*length;
	}
}
class Circle implements Shape{
	public double area(double radius) {
		return radius*radius*Math.PI;
	}
}

public class Work2 {
	public static void main(String[] args) {
		Square s=new Square();
		Circle c=new Circle();
		System.out.println(s.area(5));
		System.out.println(c.area(2));
	}

}
